package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.widget.ImageView;
import com.bumptech.glide.Glide;

public class blo {
    protected static ro<Drawable> ˋ(Context context, String str) {
        ro<Drawable> roVar = null;
        try {
            roVar = Glide.ˏ(context).ˏ(str);
        } catch (IllegalArgumentException e) {
            Logger.ˏ("GlideManager", "getImageBuilder Glide IllegalArgumentException");
        }
        return roVar;
    }

    public static void ˊ(ImageView imageView, String str, String str2, zp zpVar, blh o_blh) {
        if (imageView == null || str == null) {
            Logger.ˎ("GlideManager", "asynLoadImgByDrawable param is null");
            return;
        }
        Context context = imageView.getContext();
        ro ˋ = ˋ(context, str);
        if (ˋ == null) {
            Logger.ˏ("GlideManager", "asynLoadImgByDrawable DrawableRequestBuilder is null");
            return;
        }
        ro ॱ;
        if (zpVar != null) {
            ॱ = ˋ.ॱ((ze) zpVar);
        } else {
            ॱ = ˋ;
        }
        if (TextUtils.isEmpty(str2)) {
            ˋ = ॱ;
        } else {
            ˋ = ॱ.ˏ((ro) ˋ(context, str2).ˊ(200, 200));
        }
        if (o_blh != null) {
            ˋ = ˋ.ॱ(new blk(o_blh));
        }
        ˋ.ˏ(imageView);
    }
}
